﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _6
{
    class Program
    {static void useref(ref int a)
    {
        a=41;
    }
    static void useout(out int a)
    {
        a = 41;
    }
        static void useparams(params string[] list)
        {
            for (int i = 0; i < list.Length; i++)
            {
                Console.WriteLine(list[i]);
            }
        }
        static void Main(string[] args)
        {int p=0,q;
            string b = "abcd";
            string[] a=new string[5]{"a","b","c","d","e"};
            useparams(b);
            useref(ref p);
            Console.WriteLine(p);
            useout(out q);
            Console.WriteLine(q);
        }
    }
}
